/**
 * 过滤url
 * @param Path  路由参数
 * @param Params  查询参数
 * @param Url  传进来的页面链接
 * @returns {string}  过滤后的url
 */
export default function filterUrl(Path, Params, Url) {
  const queryString = new URLSearchParams(Params).toString();
  const accessToken = Url.accessToken;
  const refreshToken = Url.refreshToken;
  const token = Url.token;
  const userId = Url.userId;

  return `https://www.yaozhuasocial.com/yaozhua_shequ/#${Path}?${queryString}&accessToken=${accessToken}&refreshToken=${refreshToken}&token=${token}&userId=${userId}`;
}
